﻿using Tss.MagicWeb.Kernel.Extension;

namespace Tss.MagicWeb.Kernel.Utility
{
    public static class SecurityUtils
    {
        public static bool IsValid(string password, string passwordHash, string salt)
        {
            var tempHash = HashEngine.GenerateHash(password, salt);
            return tempHash.EqualsIgnoreCase(passwordHash);
        }
    }
}
